export interface User{
  userName: string
  account: string
  password: string
  roleId?: number
  state?: number
  profilePicture?: string
  registerTime?: number
  number?: number
  maxNumber?: number
  token?: string
  role?: Role
  routerNames?: string[]
}

export interface Role{
  id: number
  roleName: string
  description: string
}

export interface WeiboHot{
  hotWord: string
  type: string
  tag: string
  times: number
  firstTimeStick: number
  lastTimeStick: number
  topOrder: number
  bottomOrder: number
}

export interface UploadToken{
  id: number,
  ts: number,
  sign: string
}

export interface Image{
  id: number
  yunId: string
  createTime: number
  url: string
  account: string
  categoryId: number
}

export interface Categroy{
  id:number
  account:string
  createTime:number
  description:string
  categoryName:string
}

export interface ImageShare{
  id:string
  account:string
  createTime:number
  categoryId:number
  isDeleted:number
  outAnimate?:boolean
}

export interface BaiduHot{
  word: string
  desc: string
  hotScore: string
  firstTime: number
  lastTime: number
  topRank: number
  bottomRank: number
  times:number
}
export interface FengHuangHot{
  id: string
  title: string
  source: string
  word: string
  firstTime: number
  lastTime: number
  topRank: number
  bottomRank: number
  times:number
}

export interface BiliHot{
  id: string
  word: string
  firstTime: number
  lastTime: number
  topRank: number
  bottomRank: number
  times:number
}

export interface WebSocketMessage{
  typeId: number
  token: string
  data: string
  chatRoomId: string
}
export interface ChatMessage{
  account: string
  time: number
  data: string
  inAnimate?:boolean
  outAnimate?:boolean
}
export interface ChatRoom{
  id: string
  name: string
  hostAccount: string
  createTime: number
  messages: ChatMessage[]
  inAnimate?:boolean
  outAnimate?:boolean
}